/* s100_roms.h

   Copyright (c) 2025 Patrick A. Linstruth

   Permission is hereby granted, free of charge, to any person obtaining a
   copy of this software and associated documentation files (the "Software"),
   to deal in the Software without restriction, including without limitation
   the rights to use, copy, modify, merge, publish, distribute, sublicense,
   and/or sell copies of the Software, and to permit persons to whom the
   Software is furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in
   all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
   PETER SCHORN BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

   Except as contained in this notice, the name of Patrick Linstruth shall not
   be used in advertising or otherwise to promote the sale, use or other dealings
   in this Software without prior written authorization from Patrick Linstruth.

   History:
   11/07/25 Initial version

*/

#ifndef _S100_ROMS_H
#define _S100_ROMS_H

/*
 * MITS Altair Disk Boot Loader Version 4.1
 * https://deramp.com/downloads/altair/software/roms/orginal_roms/DBL.ASM
 */
#define ROM_MITS_DBL_BASEADDR 0xff00
#define ROM_MITS_DBL_SIZE     0x0100
#define ROM_MITS_DBL_NAME     "DBL"
#define ROM_MITS_DBL_DESC     "MITS Disk Boot Loader 4.1"

static int32 rom_mits_dbl[] = {
    0x21, 0x13, 0xff, 0x11, 0x00, 0x2c, 0x0e, 0xeb,
    0x7e, 0x12, 0x23, 0x13, 0x0d, 0xc2, 0x08, 0xff,
    0xc3, 0x00, 0x2c, 0xf3, 0xaf, 0xd3, 0x22, 0x2f,
    0xd3, 0x23, 0x3e, 0x2c, 0xd3, 0x22, 0x3e, 0x03,
    0xd3, 0x10, 0xdb, 0xff, 0xe6, 0x10, 0x0f, 0x0f,
    0xc6, 0x10, 0xd3, 0x10, 0x31, 0x79, 0x2d, 0xaf,
    0xd3, 0x08, 0xdb, 0x08, 0xe6, 0x08, 0xc2, 0x1c,
    0x2c, 0x3e, 0x04, 0xd3, 0x09, 0xc3, 0x38, 0x2c,
    0xdb, 0x08, 0xe6, 0x02, 0xc2, 0x2d, 0x2c, 0x3e,
    0x02, 0xd3, 0x09, 0xdb, 0x08, 0xe6, 0x40, 0xc2,
    0x2d, 0x2c, 0x11, 0x00, 0x00, 0x06, 0x00, 0x3e,
    0x10, 0xf5, 0xd5, 0xc5, 0xd5, 0x11, 0x86, 0x80,
    0x21, 0xeb, 0x2c, 0xdb, 0x09, 0x1f, 0xda, 0x50,
    0x2c, 0xe6, 0x1f, 0xb8, 0xc2, 0x50, 0x2c, 0xdb,
    0x08, 0xb7, 0xfa, 0x5c, 0x2c, 0xdb, 0x0a, 0x77,
    0x23, 0x1d, 0xca, 0x72, 0x2c, 0x1d, 0xdb, 0x0a,
    0x77, 0x23, 0xc2, 0x5c, 0x2c, 0xe1, 0x11, 0xee,
    0x2c, 0x01, 0x80, 0x00, 0x1a, 0x77, 0xbe, 0xc2,
    0xcb, 0x2c, 0x80, 0x47, 0x13, 0x23, 0x0d, 0xc2,
    0x79, 0x2c, 0x1a, 0xfe, 0xff, 0xc2, 0x90, 0x2c,
    0x13, 0x1a, 0xb8, 0xc1, 0xeb, 0xc2, 0xc2, 0x2c,
    0xf1, 0xf1, 0x2a, 0xec, 0x2c, 0xcd, 0xe5, 0x2c,
    0xd2, 0xbb, 0x2c, 0x04, 0x04, 0x78, 0xfe, 0x20,
    0xda, 0x44, 0x2c, 0x06, 0x01, 0xca, 0x44, 0x2c,
    0xdb, 0x08, 0xe6, 0x02, 0xc2, 0xad, 0x2c, 0x3e,
    0x01, 0xd3, 0x09, 0xc3, 0x42, 0x2c, 0x3e, 0x80,
    0xd3, 0x08, 0xc3, 0x00, 0x00, 0xd1, 0xf1, 0x3d,
    0xc2, 0x46, 0x2c, 0x3e, 0x43, 0x01, 0x3e, 0x4d,
    0xfb, 0x32, 0x00, 0x00, 0x22, 0x01, 0x00, 0x47,
    0x3e, 0x80, 0xd3, 0x08, 0x78, 0xd3, 0x01, 0xd3,
    0x11, 0xd3, 0x05, 0xd3, 0x23, 0xc3, 0xda, 0x2c,
    0x7a, 0xbc, 0xc0, 0x7b, 0xbd, 0xc9, 0x00, 0x00,
};

/*
 * MITS Altair Turnkey Monitor
 * https://deramp.com/downloads/altair/software/roms/orginal_roms/TURMON.ASM
 */
#define ROM_MITS_TURMON_BASEADDR 0xfd00
#define ROM_MITS_TURMON_SIZE     0x0100
#define ROM_MITS_TURMON_NAME     "TURMON"
#define ROM_MITS_TURMON_DESC     "MITS Turnkey Monitor"

static int32 rom_mits_turmon[] = {
    0x3e, 0x03, 0xd3, 0x10, 0x3e, 0x11, 0xd3, 0x10,
    0x31, 0x00, 0xf8, 0xcd, 0x9d, 0xfd, 0x3e, 0x2e,
    0xcd, 0xf2, 0xfd, 0xcd, 0xe8, 0xfd, 0xfe, 0x4d,
    0xca, 0x29, 0xfd, 0xfe, 0x44, 0xcc, 0x4f, 0xfd,
    0xfe, 0x4a, 0xc2, 0x08, 0xfd, 0xcd, 0xa7, 0xfd,
    0xe9, 0xcd, 0xa7, 0xfd, 0x3e, 0x23, 0xcd, 0x9d,
    0xfd, 0x54, 0x5d, 0xcd, 0xc9, 0xfd, 0x1a, 0x67,
    0xcd, 0xcf, 0xfd, 0xcd, 0xa8, 0xfd, 0xeb, 0xda,
    0x2d, 0xfd, 0x77, 0xbe, 0xca, 0x2d, 0xfd, 0x3e,
    0x3f, 0xcd, 0xf2, 0xfd, 0xc3, 0x08, 0xfd, 0xcd,
    0xa7, 0xfd, 0xeb, 0xd4, 0xe3, 0xfd, 0xcd, 0xa7,
    0xfd, 0x3e, 0x0d, 0x06, 0x3c, 0xcd, 0xf2, 0xfd,
    0x05, 0xc2, 0x5d, 0xfd, 0xb8, 0x78, 0xc2, 0x5b,
    0xfd, 0x7d, 0x93, 0x6f, 0x7c, 0x9a, 0x67, 0x23,
    0x05, 0x7c, 0xb7, 0xc2, 0x77, 0xfd, 0x45, 0x3e,
    0x3c, 0xcd, 0xf2, 0xfd, 0x78, 0xcd, 0xf2, 0xfd,
    0x0e, 0x00, 0x7b, 0xcd, 0xf2, 0xfd, 0x7a, 0xcd,
    0xf2, 0xfd, 0x1a, 0xcd, 0xf2, 0xfd, 0x13, 0x2b,
    0x05, 0xc2, 0x8a, 0xfd, 0x79, 0xcd, 0xf2, 0xfd,
    0x7c, 0xb5, 0xc2, 0x70, 0xfd, 0x3e, 0x0d, 0xcd,
    0xf2, 0xfd, 0x3e, 0x0a, 0xc3, 0xf2, 0xfd, 0x06,
    0x06, 0x03, 0x21, 0x00, 0x00, 0xcd, 0xe8, 0xfd,
    0x4f, 0xfe, 0x20, 0x37, 0xc8, 0xe6, 0xb8, 0xee,
    0x30, 0xc2, 0x47, 0xfd, 0x79, 0xe6, 0x07, 0x29,
    0x29, 0x29, 0x85, 0x6f, 0x05, 0xc2, 0xad, 0xfd,
    0xc9, 0x06, 0x06, 0xaf, 0xc3, 0xd6, 0xfd, 0x06,
    0x03, 0xe6, 0x29, 0x17, 0x29, 0x17, 0x29, 0x17,
    0xe6, 0x07, 0xf6, 0x30, 0xcd, 0xf2, 0xfd, 0x05,
    0xc2, 0xd2, 0xfd, 0x3e, 0x20, 0xc3, 0xf2, 0xfd,
    0xdb, 0x10, 0x0f, 0xd2, 0xe8, 0xfd, 0xdb, 0x11,
    0xe6, 0x7f, 0xf5, 0x81, 0x4f, 0xdb, 0x10, 0x0f,
    0x0f, 0xd2, 0xf5, 0xfd, 0xf1, 0xd3, 0x11, 0xc9,
};

#define ROM_MITS_HDSK_BASEADDR 0xfc00
#define ROM_MITS_HDSK_SIZE     0x0200
#define ROM_MITS_HDSK_NAME     "HDSK"
#define ROM_MITS_HDSK_DESC     "MITS Hard Disk Boot ROM"

static int32 rom_mits_hdsk[] = {
    0x31, 0x00, 0xc0, 0xcd, 0xa6, 0xfd, 0xcd, 0xbe, 
    0xfd, 0xdb, 0xa0, 0x07, 0xda, 0x15, 0xfc, 0x11, 
    0xe1, 0xfd, 0xcd, 0xb1, 0xfd, 0x21, 0x00, 0x00, 
    0xcd, 0x5b, 0xfc, 0x06, 0x28, 0xdb, 0xa5, 0x05, 
    0xc2, 0x1d, 0xfc, 0xdb, 0xa5, 0x6f, 0xdb, 0xa5, 
    0x67, 0xdb, 0xa5, 0x5f, 0xdb, 0xa5, 0x57, 0xd5, 
    0x06, 0xd4, 0xdb, 0xa5, 0x05, 0xc2, 0x32, 0xfc, 
    0x11, 0xec, 0xfd, 0xcd, 0xb1, 0xfd, 0x11, 0x00, 
    0x00, 0xcd, 0x5b, 0xfc, 0x06, 0x00, 0xdb, 0xa5, 
    0x12, 0x13, 0x05, 0xc2, 0x46, 0xfc, 0x23, 0xe3, 
    0x2b, 0x7c, 0xb5, 0xca, 0x5a, 0xfc, 0xe3, 0xc3, 
    0x41, 0xfc, 0xe9, 0xe5, 0xd5, 0xc5, 0x06, 0x30, 
    0x11, 0x10, 0x00, 0x29, 0x7a, 0x17, 0xb8, 0xda, 
    0x6c, 0xfc, 0x90, 0x2c, 0x57, 0x1d, 0xc2, 0x63, 
    0xfc, 0x47, 0x7d, 0xd3, 0xa7, 0xdb, 0xa3, 0x7c, 
    0xf6, 0x00, 0xd3, 0xa3, 0xcd, 0xa9, 0xfc, 0x78, 
    0xfe, 0x18, 0xda, 0x89, 0xfc, 0xd6, 0x18, 0xc6, 
    0x20, 0xd3, 0xa7, 0xdb, 0xa3, 0x3e, 0x30, 0xd3, 
    0xa3, 0xcd, 0xa9, 0xfc, 0xdb, 0xa3, 0xdb, 0xa5, 
    0xaf, 0xd3, 0xa7, 0x3e, 0x50, 0xd3, 0xa3, 0xdb, 
    0xa4, 0x07, 0xd2, 0x9f, 0xfc, 0xc1, 0xd1, 0xe1, 
    0xc9, 0xdb, 0xa0, 0x07, 0xd2, 0xa9, 0xfc, 0xdb, 
    0xa1, 0xe6, 0x7f, 0xc8, 0x11, 0xf5, 0xfd, 0xcd, 
    0xb1, 0xfd, 0xcd, 0x8f, 0xfd, 0xcd, 0xbe, 0xfd, 
    0xc3, 0x06, 0xfd, 0xaf, 0xd3, 0xa0, 0xd3, 0xa2, 
    0xd3, 0xa4, 0xd3, 0xa6, 0xd3, 0xa1, 0xd3, 0xa5, 
    0x2f, 0xd3, 0xa3, 0xd3, 0xa7, 0x3e, 0x2c, 0xd3, 
    0xa0, 0xd3, 0xa4, 0xd3, 0xa6, 0x3e, 0x24, 0xd3, 
    0xa2, 0xdb, 0xa1, 0xc9, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x31, 0x00, 0xc0, 0xcd, 0xa6, 0xfd, 0xcd, 0xbe, 
    0xfd, 0x3e, 0x2e, 0xcd, 0xd5, 0xfd, 0xcd, 0xc8, 
    0xfd, 0xfe, 0x4c, 0xca, 0x06, 0xfc, 0xfe, 0x4d, 
    0xca, 0x24, 0xfd, 0xfe, 0x4a, 0xc2, 0x06, 0xfd, 
    0xcd, 0x54, 0xfd, 0xe9, 0xcd, 0xd3, 0xfd, 0xcd, 
    0x54, 0xfd, 0x3e, 0x23, 0xcd, 0xbe, 0xfd, 0x7c, 
    0xcd, 0x8f, 0xfd, 0x7d, 0xcd, 0x8f, 0xfd, 0xcd, 
    0xd3, 0xfd, 0x7e, 0xcd, 0x8f, 0xfd, 0xcd, 0xd3, 
    0xfd, 0xcd, 0x5d, 0xfd, 0xda, 0x2b, 0xfd, 0x77, 
    0xbe, 0xca, 0x2b, 0xfd, 0x3e, 0x3f, 0xcd, 0xd5, 
    0xfd, 0xc3, 0x06, 0xfd, 0xcd, 0x5d, 0xfd, 0x67, 
    0xcd, 0x5d, 0xfd, 0x6f, 0xc9, 0xcd, 0xc8, 0xfd, 
    0xfe, 0x20, 0x37, 0xc8, 0xcd, 0x74, 0xfd, 0x07, 
    0x07, 0x07, 0x07, 0x4f, 0xcd, 0xc8, 0xfd, 0xcd, 
    0x74, 0xfd, 0xb1, 0xc9, 0xfe, 0x30, 0xda, 0x4c, 
    0xfd, 0xfe, 0x3a, 0xda, 0x8c, 0xfd, 0xe6, 0x5f, 
    0xfe, 0x41, 0xda, 0x4c, 0xfd, 0xfe, 0x47, 0xd2, 
    0x4c, 0xfd, 0xd6, 0x07, 0xe6, 0x0f, 0xc9, 0xf5, 
    0x07, 0x07, 0x07, 0x07, 0xcd, 0x98, 0xfd, 0xf1, 
    0xe6, 0x0f, 0xfe, 0x0a, 0xda, 0xa1, 0xfd, 0xc6, 
    0x07, 0xc6, 0x30, 0xc3, 0xd5, 0xfd, 0x3e, 0x03, 
    0xd3, 0x10, 0x3e, 0x11, 0xd3, 0x10, 0xc3, 0xc3, 
    0xfc, 0xf5, 0x1a, 0xcd, 0xd5, 0xfd, 0x13, 0xe6, 
    0x80, 0xca, 0xb2, 0xfd, 0xf1, 0xc9, 0x3e, 0x0d, 
    0xcd, 0xd5, 0xfd, 0x3e, 0x0a, 0xc3, 0xd5, 0xfd, 
    0xdb, 0x10, 0x0f, 0xd2, 0xc8, 0xfd, 0xdb, 0x11, 
    0xe6, 0x7f, 0xda, 0x3e, 0x20, 0xf5, 0xdb, 0x10, 
    0xe6, 0x02, 0xca, 0xd6, 0xfd, 0xf1, 0xd3, 0x11, 
    0xc9, 0x52, 0x45, 0x53, 0x45, 0x54, 0x20, 0x43, 
    0x54, 0x4c, 0x0d, 0x8a, 0x4c, 0x4f, 0x41, 0x44, 
    0x49, 0x4e, 0x47, 0x0d, 0x8a, 0x4c, 0x4f, 0x41, 
    0x44, 0x20, 0x45, 0x52, 0x52, 0x4f, 0x52, 0xba, 
};

/*
 * ALTMON 1.3
 * https://deramp.com/downloads/altair/software/roms/orginal_roms/DBL.ASM
 */
#define ROM_ALTMON_BASEADDR 0xf800
#define ROM_ALTMON_SIZE     0x0400
#define ROM_ALTMON_NAME     "ALTMON"
#define ROM_ALTMON_DESC     "Altmon 1.3"

static int32 rom_altmon[ROM_ALTMON_SIZE] = {
    0x3e, 0x03, 0xd3, 0x10, 0xd3, 0x12, 0x3e, 0x11,
    0xd3, 0x10, 0xd3, 0x12, 0x31, 0x00, 0xc0, 0xcd,
    0xa5, 0xfb, 0x0d, 0x0a, 0x0a, 0x41, 0x4c, 0x54,
    0x4d, 0x4f, 0x4e, 0x20, 0x31, 0x2e, 0xb3, 0x31,
    0x00, 0xc0, 0x21, 0x1f, 0xf8, 0xe5, 0xcd, 0x63,
    0xfb, 0x3e, 0x2a, 0xcd, 0x48, 0xfb, 0xcd, 0xbc,
    0xfb, 0xe6, 0x5f, 0xfe, 0x42, 0xd8, 0xfe, 0x55,
    0xd0, 0x21, 0xc0, 0xf8, 0x87, 0x85, 0x6f, 0x5e,
    0x23, 0x56, 0xeb, 0xe9, 0x76, 0xf8, 0xcf, 0xf9,
    0xf1, 0xf8, 0x8f, 0xf9, 0xfb, 0xf9, 0x6a, 0xf8,
    0x76, 0xfa, 0x5c, 0xfa, 0x6a, 0xf8, 0x69, 0xf9,
    0x76, 0xfa, 0x84, 0xf9, 0xb6, 0xf9, 0x3f, 0xfa,
    0x32, 0xf9, 0x80, 0xf8, 0x00, 0xfc, 0xef, 0xf9,
    0x99, 0xf8, 0xcd, 0xa5, 0xfb, 0x47, 0x4f, 0x54,
    0xcf, 0xcd, 0x20, 0xfb, 0xeb, 0xe9, 0xcd, 0xa5,
    0xfb, 0x42, 0x4f, 0x4f, 0xd4, 0xc3, 0x00, 0xff,
    0xcd, 0xa5, 0xfb, 0x43, 0x53, 0x55, 0xcd, 0xcd,
    0x1d, 0xfb, 0x06, 0x00, 0x7e, 0x80, 0x47, 0xcd,
    0xea, 0xfb, 0xc2, 0x8c, 0xf8, 0x78, 0xc3, 0x79,
    0xfb, 0xcd, 0xa5, 0xfb, 0x54, 0x45, 0x53, 0xd4,
    0xcd, 0x1d, 0xfb, 0x01, 0x5a, 0x5a, 0xcd, 0xdf,
    0xf8, 0xc5, 0xe5, 0xd5, 0x7c, 0xfe, 0xbf, 0xca,
    0xb6, 0xf8, 0xcd, 0xdf, 0xf8, 0x70, 0xcd, 0xea,
    0xfb, 0xc2, 0xac, 0xf8, 0xd1, 0xe1, 0xc1, 0xe5,
    0xd5, 0x7c, 0xfe, 0xbf, 0xca, 0xcf, 0xf8, 0xcd,
    0xdf, 0xf8, 0x7e, 0xb8, 0xc4, 0x6d, 0xfb, 0xcd,
    0xea, 0xfb, 0xc2, 0xc1, 0xf8, 0xd1, 0xe1, 0x3e,
    0x2e, 0xcd, 0x48, 0xfb, 0xc3, 0xa6, 0xf8, 0xcd,
    0xc7, 0xfb, 0x78, 0xe6, 0xb4, 0xa7, 0xea, 0xea,
    0xf8, 0x37, 0x79, 0x17, 0x4f, 0x78, 0x17, 0x47,
    0xc9, 0xcd, 0xa5, 0xfb, 0x44, 0x55, 0x4d, 0xd0,
    0xcd, 0x1d, 0xfb, 0xe5, 0x0e, 0x10, 0xcd, 0x81,
    0xfb, 0x7e, 0xcd, 0x79, 0xfb, 0xcd, 0x46, 0xfb,
    0x23, 0x0d, 0xc2, 0x01, 0xf9, 0xcd, 0x46, 0xfb,
    0xe1, 0x0e, 0x10, 0x7e, 0xfe, 0x7f, 0xd2, 0x1e,
    0xf9, 0xfe, 0x20, 0xd2, 0x20, 0xf9, 0x3e, 0x2e,
    0xcd, 0x48, 0xfb, 0xcd, 0xea, 0xfb, 0x0d, 0xc2,
    0x13, 0xf9, 0xcd, 0xea, 0xfb, 0xc8, 0x2b, 0xc3,
    0xfb, 0xf8, 0xcd, 0xa5, 0xfb, 0x50, 0x47, 0xcd,
    0xcd, 0x20, 0xfb, 0xeb, 0xcd, 0x63, 0xfb, 0x7e,
    0xcd, 0x79, 0xfb, 0x3e, 0x2d, 0xcd, 0x48, 0xfb,
    0xcd, 0xb3, 0xfb, 0xfe, 0x20, 0xca, 0x65, 0xf9,
    0xfe, 0x0d, 0xc2, 0x5b, 0xf9, 0xcd, 0x63, 0xfb,
    0xc3, 0x48, 0xf9, 0xeb, 0x21, 0x00, 0x00, 0x0e,
    0x02, 0xcd, 0x28, 0xfb, 0x73, 0x23, 0xc3, 0x3f,
    0xf9, 0xcd, 0xa5, 0xfb, 0x46, 0x49, 0x4c, 0xcc,
    0xcd, 0x1d, 0xfb, 0xe5, 0x0e, 0x02, 0xcd, 0x22,
    0xfb, 0xeb, 0xe3, 0xc1, 0x71, 0xcd, 0xea, 0xfb,
    0xc8, 0xc3, 0x7c, 0xf9, 0xcd, 0xa5, 0xfb, 0x4d,
    0x4f, 0x56, 0xc5, 0xaf, 0xc3, 0x96, 0xf9, 0xcd,
    0xa5, 0xfb, 0x45, 0x58, 0x43, 0xc8, 0x47, 0xcd,
    0x1d, 0xfb, 0xe5, 0xcd, 0x20, 0xfb, 0xeb, 0xe3,
    0x4e, 0xe3, 0x78, 0xb7, 0xca, 0xab, 0xf9, 0x7e,
    0xe3, 0x77, 0xe3, 0x71, 0x23, 0xe3, 0xcd, 0xea,
    0xfb, 0xc2, 0xa0, 0xf9, 0xe1, 0xc9, 0xcd, 0xa5,
    0xfb, 0x52, 0x41, 0x4d, 0x54, 0x4f, 0xd0, 0x21,
    0xff, 0xff, 0x23, 0x7e, 0x47, 0x2f, 0x77, 0xbe,
    0x70, 0xca, 0xc2, 0xf9, 0xc3, 0x6d, 0xfb, 0xcd,
    0xa5, 0xfb, 0x43, 0x4f, 0x4d, 0xd0, 0xcd, 0x1d,
    0xfb, 0xe5, 0xcd, 0x20, 0xfb, 0xeb, 0x7e, 0x23,
    0xe3, 0xbe, 0x46, 0xc4, 0x6d, 0xfb, 0xcd, 0xea,
    0xfb, 0xe3, 0xc2, 0xde, 0xf9, 0xe1, 0xc9, 0xcd,
    0xa5, 0xfb, 0x46, 0x49, 0x4e, 0x44, 0xb1, 0xaf,
    0xc3, 0x03, 0xfa, 0xcd, 0xa5, 0xfb, 0x46, 0x49,
    0x4e, 0x44, 0xb2, 0xf5, 0xcd, 0x1d, 0xfb, 0xe5,
    0x0e, 0x02, 0xcd, 0x22, 0xfb, 0xeb, 0x45, 0xe1,
    0xf1, 0xb7, 0xf5, 0xca, 0x1f, 0xfa, 0xe5, 0x0e,
    0x02, 0xcd, 0x22, 0xfb, 0xeb, 0x4d, 0xe1, 0x7e,
    0xb8, 0xc2, 0x37, 0xfa, 0xf1, 0xb7, 0xf5, 0xca,
    0x31, 0xfa, 0x23, 0x7e, 0x2b, 0xb9, 0xc2, 0x37,
    0xfa, 0x23, 0x7e, 0x2b, 0xcd, 0x6d, 0xfb, 0xcd,
    0xea, 0xfb, 0xc2, 0x1f, 0xfa, 0xf1, 0xc9, 0xcd,
    0xa5, 0xfb, 0x4f, 0x55, 0xd4, 0x0e, 0x02, 0xcd,
    0x22, 0xfb, 0x0e, 0x02, 0xcd, 0x22, 0xfb, 0x55,
    0x21, 0xd0, 0xbf, 0x36, 0xc9, 0x2b, 0x72, 0x2b,
    0x36, 0xd3, 0x7b, 0xe9, 0xcd, 0xa5, 0xfb, 0x49,
    0xce, 0x0e, 0x02, 0xcd, 0x22, 0xfb, 0x21, 0xd0,
    0xbf, 0x36, 0xc9, 0x2b, 0x73, 0x2b, 0x36, 0xdb,
    0xcd, 0xce, 0xbf, 0xc3, 0x79, 0xfb, 0xcd, 0xa5,
    0xfb, 0x48, 0x45, 0x58, 0x4c, 0x4f, 0x41, 0xc4,
    0x0e, 0x01, 0xcd, 0x22, 0xfb, 0x21, 0xe0, 0xbf,
    0x73, 0xcd, 0x63, 0xfb, 0x0e, 0x00, 0xcd, 0xf3,
    0xfa, 0xd6, 0x3a, 0xc2, 0x8e, 0xfa, 0x57, 0xcd,
    0xd5, 0xfa, 0x7b, 0xb7, 0xca, 0xc3, 0xfa, 0x43,
    0x0c, 0xcd, 0xd5, 0xfa, 0x63, 0xcd, 0xd5, 0xfa,
    0x6b, 0x0d, 0xcd, 0xd5, 0xfa, 0xcd, 0xd5, 0xfa,
    0x73, 0x23, 0x05, 0xc2, 0xad, 0xfa, 0xcd, 0xd5,
    0xfa, 0xca, 0x89, 0xfa, 0xcd, 0xa5, 0xfb, 0x20,
    0x45, 0x52, 0xd2, 0xdb, 0x11, 0x11, 0xb1, 0x28,
    0xdb, 0x10, 0x0f, 0xda, 0xc3, 0xfa, 0x1b, 0x7a,
    0xb3, 0xc2, 0xc8, 0xfa, 0xc9, 0xcd, 0xf3, 0xfa,
    0xcd, 0xeb, 0xfa, 0x87, 0x87, 0x87, 0x87, 0x5f,
    0xcd, 0xf3, 0xfa, 0xcd, 0xeb, 0xfa, 0x83, 0x5f,
    0x82, 0x57, 0xc9, 0xd6, 0x30, 0xfe, 0x0a, 0xd8,
    0xd6, 0x07, 0xc9, 0xc5, 0x3a, 0xe0, 0xbf, 0xb7,
    0xc2, 0x04, 0xfb, 0xcd, 0xd6, 0xfb, 0xca, 0xfb,
    0xfa, 0xc3, 0x0f, 0xfb, 0xcd, 0xd6, 0xfb, 0xdb,
    0x12, 0x0f, 0xd2, 0x04, 0xfb, 0xdb, 0x13, 0x47,
    0x79, 0xb7, 0xca, 0x1a, 0xfb, 0x78, 0xc1, 0xc3,
    0x48, 0xfb, 0x78, 0xc1, 0xc9, 0xcd, 0x20, 0xfb,
    0x0e, 0x04, 0x21, 0x00, 0x00, 0xcd, 0xb3, 0xfb,
    0xfe, 0x30, 0xda, 0x1f, 0xf8, 0xfe, 0x3a, 0xd4,
    0x56, 0xfb, 0x29, 0x29, 0x29, 0x29, 0xd6, 0x30,
    0xfe, 0x0a, 0xda, 0x3f, 0xfb, 0xd6, 0x07, 0x85,
    0x6f, 0x0d, 0xc2, 0x25, 0xfb, 0xeb, 0x3e, 0x20,
    0xf5, 0xdb, 0x10, 0xe6, 0x02, 0xca, 0x49, 0xfb,
    0xf1, 0xe6, 0x7f, 0xd3, 0x11, 0xc9, 0xfe, 0x41,
    0xda, 0x1f, 0xf8, 0xe6, 0x5f, 0xfe, 0x47, 0xd2,
    0x1f, 0xf8, 0xc9, 0x3e, 0x0d, 0xcd, 0x48, 0xfb,
    0x3e, 0x0a, 0xc3, 0x48, 0xfb, 0xf5, 0xcd, 0x81,
    0xfb, 0x78, 0xcd, 0x79, 0xfb, 0xcd, 0x46, 0xfb,
    0xf1, 0xf5, 0xcd, 0x93, 0xfb, 0xf1, 0xc3, 0x97,
    0xfb, 0xcd, 0x63, 0xfb, 0xcd, 0xc7, 0xfb, 0x7c,
    0xcd, 0x79, 0xfb, 0x7d, 0xcd, 0x79, 0xfb, 0xcd,
    0x46, 0xfb, 0xc9, 0x1f, 0x1f, 0x1f, 0x1f, 0xe6,
    0x0f, 0xc6, 0x30, 0xfe, 0x3a, 0xda, 0x48, 0xfb,
    0xc6, 0x07, 0xc3, 0x48, 0xfb, 0xe1, 0x7e, 0xcd,
    0x48, 0xfb, 0xb6, 0x23, 0xf2, 0xa6, 0xfb, 0xcd,
    0x46, 0xfb, 0xe9, 0xcd, 0xbc, 0xfb, 0xfe, 0x1b,
    0xc8, 0xc3, 0x48, 0xfb, 0xdb, 0x10, 0x0f, 0xd2,
    0xbc, 0xfb, 0xdb, 0x11, 0xe6, 0x7f, 0xc9, 0xcd,
    0xd6, 0xfb, 0xfe, 0x20, 0xc0, 0xcd, 0xd6, 0xfb,
    0xfe, 0x20, 0xc2, 0xcd, 0xfb, 0xc9, 0xdb, 0x10,
    0xe6, 0x01, 0xc8, 0xdb, 0x11, 0xe6, 0x7f, 0xfe,
    0x03, 0xca, 0x1f, 0xf8, 0xfe, 0x1b, 0xca, 0x1f,
    0xf8, 0xc9, 0x7b, 0x95, 0xc2, 0xf1, 0xfb, 0x7a,
    0x9c, 0x23, 0xc0, 0x13, 0xc9, 0xff, 0xff, 0xff
};

#define ROM_AZ80_DBL_BASEADDR 0xff00
#define ROM_AZ80_DBL_SIZE     0x0100
#define ROM_AZ80_DBL_NAME     "AZ80DBL"
#define ROM_AZ80_DBL_DESC     "AltairZ80 Disk Boot Loader"

int32 rom_az80_dbl[] = {
    0xf3, 0x06, 0x80, 0x3e, 0x0e, 0xd3, 0xfe, 0x05, /* ff00-ff07 */
    0xc2, 0x05, 0xff, 0x3e, 0x16, 0xd3, 0xfe, 0x3e, /* ff08-ff0f */
    0x12, 0xd3, 0xfe, 0xdb, 0xfe, 0xb7, 0xca, 0x20, /* ff10-ff17 */
    0xff, 0x3e, 0x0c, 0xd3, 0xfe, 0xaf, 0xd3, 0xfe, /* ff18-ff1f */
    0x21, 0x00, 0x5c, 0x11, 0x33, 0xff, 0x0e, 0x88, /* ff20-ff27 */
    0x1a, 0x77, 0x13, 0x23, 0x0d, 0xc2, 0x28, 0xff, /* ff28-ff2f */
    0xc3, 0x00, 0x5c, 0x31, 0x21, 0x5d, 0x3e, 0x00, /* ff30-ff37 */
    0xd3, 0x08, 0x3e, 0x04, 0xd3, 0x09, 0xc3, 0x19, /* ff38-ff3f */
    0x5c, 0xdb, 0x08, 0xe6, 0x02, 0xc2, 0x0e, 0x5c, /* ff40-ff47 */
    0x3e, 0x02, 0xd3, 0x09, 0xdb, 0x08, 0xe6, 0x40, /* ff48-ff4f */
    0xc2, 0x0e, 0x5c, 0x11, 0x00, 0x00, 0x06, 0x08, /* ff50-ff57 */
    0xc5, 0xd5, 0x11, 0x86, 0x80, 0x21, 0x88, 0x5c, /* ff58-ff5f */
    0xdb, 0x09, 0x1f, 0xda, 0x2d, 0x5c, 0xe6, 0x1f, /* ff60-ff67 */
    0xb8, 0xc2, 0x2d, 0x5c, 0xdb, 0x08, 0xb7, 0xfa, /* ff68-ff6f */
    0x39, 0x5c, 0xdb, 0x0a, 0x77, 0x23, 0x1d, 0xc2, /* ff70-ff77 */
    0x39, 0x5c, 0xd1, 0x21, 0x8b, 0x5c, 0x06, 0x80, /* ff78-ff7f */
    0x7e, 0x12, 0x23, 0x13, 0x05, 0xc2, 0x4d, 0x5c, /* ff80-ff87 */
    0xc1, 0x21, 0x00, 0x5c, 0x7a, 0xbc, 0xc2, 0x60, /* ff88-ff8f */
    0x5c, 0x7b, 0xbd, 0xd2, 0x80, 0x5c, 0x04, 0x04, /* ff90-ff97 */
    0x78, 0xfe, 0x20, 0xda, 0x25, 0x5c, 0x06, 0x01, /* ff98-ff9f */
    0xca, 0x25, 0x5c, 0xdb, 0x08, 0xe6, 0x02, 0xc2, /* ffa0-ffa7 */
    0x70, 0x5c, 0x3e, 0x01, 0xd3, 0x09, 0x06, 0x00, /* ffa8-ffaf */
    0xc3, 0x25, 0x5c, 0x3e, 0x80, 0xd3, 0x08, 0xfb, /* ffb0-ffb7 */
    0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffb8-ffbf */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffc0-ffc7 */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffc8-ffcf */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffd0-ffd7 */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffd8-ffdf */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffe0-ffe7 */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ffe8-ffef */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* fff0-fff7 */
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* fff8-ffff */
};

#endif
